fromuptodown = {name = "fromuptodown"}

function fromuptodown:update(simulation, todo)
   if (Pool.currentCycle == Pool.nbCycles) then
      todo:vendre(simulation, simulation.money)
   elseif (Anal.croissant) and (Calcul:isPossibleBuy(10, Anal.current, Anal.money)) then
      todo:acheter(10, Anal.money)
   elseif (simulation.croissant == false) then
      todo:vendre(simulation, simulation.nb_action)
   else
      todo:passe(simulation)
   end
end